From 57e9895926c04bc586b249f4dd103c052f7a784d Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Wed, 30 May 2007 09:59:09 +0100 Subject: [PATCH] Fix xen build on NetBSD. From: Christoph Egger Signed-off-by: Keir Fraser --- config/NetBSD.mk | 1 + xen/arch/x86/shutdown.c | 2 +- xen/tools/symbols.c | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 config/NetBSD.mk diff --git a/config/NetBSD.mk b/config/NetBSD.mk new file mode 100644 index 0000000000..b421a1c840 --- /dev/null +++ b/config/NetBSD.mk @@ -0,0 +1 @@ +include $(XEN_ROOT)/config/StdGNU.mk diff --git a/xen/arch/x86/shutdown.c b/xen/arch/x86/shutdown.c index 76dbcca5d2..441144b830 100644 --- a/xen/arch/x86/shutdown.c +++ b/xen/arch/x86/shutdown.c @@ -197,7 +197,7 @@ static void machine_real_restart(const unsigned char *code, unsigned length) #endif -void machine_restart(char * __unused) +void machine_restart(char *cmd) { int i; diff --git a/xen/tools/symbols.c b/xen/tools/symbols.c index c21e012206..76eb88b585 100644 --- a/xen/tools/symbols.c +++ b/xen/tools/symbols.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #define KSYM_NAME_LEN 127 @@ -103,7 +104,7 @@ static int read_symbol(FILE *in, struct sym_entry *s) _sextratext = s->addr; else if (strcmp(sym, "_eextratext") == 0) _eextratext = s->addr; - else if (toupper(stype) == 'A') + else if (toupper((uint8_t)stype) == 'A') { /* Keep these useful absolute symbols */ if (strcmp(sym, "__kernel_syscall_via_break") && @@ -113,7 +114,7 @@ static int read_symbol(FILE *in, struct sym_entry *s) return -1; } - else if (toupper(stype) == 'U' || + else if (toupper((uint8_t)stype) == 'U' || is_arm_mapping_symbol(sym)) return -1; /* exclude also MIPS ELF local symbols ($L123 instead of .L123) */ -- 2.30.2